import { useDispatch, useSelector } from 'react-redux';
import { AppDispatch, RootState } from '@/store';

// 在整个应用中使用useEnhanceDispatch、useEnhanceSelector，而不是普通的useDispatch和useSelector
export const useEnhanceDispatch = useDispatch.withTypes<AppDispatch>();
export const useEnhanceSelector = useSelector.withTypes<RootState>();
